package com.tm.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author huangp
 * @create 2023-04-09 14:05
 */
@Data
@TableName("order_detail")
public class OrderDetailEntity {
           private Long id;// bigint(20) NOT NULL COMMENT '主键',
           private Long name;// varchar(50) COLLATE utf8_bin DEFAULT NULL COMMENT '名字',
           private String image;// varchar(100) COLLATE utf8_bin DEFAULT NULL COMMENT '图片',
           @TableField("order_id")
           private String orderId;// bigint(20) NOT NULL COMMENT '订单id',

           @TableField("dish_id")
           private Long dishId;// bigint(20) DEFAULT NULL COMMENT '菜品id',

           @TableField("setmeal_id")
           private Long setmealId;// bigint(20) DEFAULT NULL COMMENT '套餐id',

           @TableField("dish_flavor")
           private Long dishFlavor;// varchar(50) COLLATE utf8_bin DEFAULT NULL COMMENT '口味',

           private Integer number;// int(11) NOT NULL DEFAULT '1' COMMENT '数量',
           private BigDecimal amount;// decimal(10,2) NOT NULL COMMENT '金额',
}
